using System;
using System.Collections;

namespace BurbleLite
{
	/// <summary>
	/// Summary description for UserBuffer.
	/// </summary>
	public class UserBuffer
	{
		public DateTime LastAccess;
		private ArrayList _Messages;
		public string UserName;

		public UserBuffer(string username)
		{
			LastAccess = DateTime.Now;
			_Messages = new ArrayList();
			this.UserName = username;
		}

		public void Touch()
		{
			LastAccess = DateTime.Now;
		}

		public ArrayList Messages
		{
			get {Touch(); return _Messages;}
			set {_Messages = value;}
		}

	}
}
